package service.serviceimpl;

import domain.User;
import domain.UserPower;
import mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import service.UserService;
import vo.Uservo;

import java.util.List;

/**
 * @ClassName : UserServiceImpl
 * @Description : //描述
 * @Author : LYH
 * @Date: 2022/5/27  19:58
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findUserByusername(String username) {
        return userMapper.findUserByusername(username);
    }

    @Override
    public int insertUser(User user) {
        return userMapper.insertUser(user);
    }

    @Override
    public int updateUser(User user) {
        return userMapper.updateUser(user);
    }

    @Override
    public UserPower findUserPower(User user) {
        return userMapper.findUserPower(user);
    }

    @Override
    public List<UserPower> findUserList(Uservo uservo) {
        return userMapper.findUserList(uservo);
    }

    @Override
    public int user_updatemanage(UserPower userPower) {
        return userMapper.user_updatemanage(userPower);
    }

    @Override
    public int deleteUser(UserPower userPower) {
        return userMapper.deleteUser(userPower);
    }
}
